package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Goods;

import java.util.List;

/**
 *
 */
public interface GoodsService extends IService<Goods> {
    public List<Goods> findPage(Integer page,Integer size);

    public boolean update(Integer id,Goods goods);

    public Goods findById(Integer id);

    public boolean add(Goods goods);

    public void upGoods(Integer id) throws Exception;

    public void downGoods(Integer id) throws Exception;

    public boolean delete(Integer id);

    public void updateStatus(Integer id, String status);

    public List<Goods> findAll();


}
